package com.laker.admin.framework.exception;

import lombok.Data;

/**
 * @author zhangwei (<a href="mailto:zhangwei@zork.com.cn">zhangwei@zork.com.cn</a>)
 * @date 2020-05-26 11:29
 */
@Data
public class BusinessRuntimeException extends RuntimeException {

    private int code;

    public BusinessRuntimeException(String message, int code) {
        super(message);
        this.code = code;
    }

    public BusinessRuntimeException(String message, int code, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public BusinessRuntimeException(int code, String message) {
        super(message);
        this.code = code;
    }


}
